clear
set dele on

?"Indexando TASAS.DBF"
use tasas
index on nro_tas to nrotas
use

?"Indexando ENCARECI.DBF"
use encareci
index on letra_+str(nro_rec,12,0) to nrorec
index on nro_ope to recope
index on fec_rec to fecrec

?"Indexando COMPRECI.DBF"
use compreci
index on letra_+str(nro_rec,12,0) to compreci
index on per_*10000+ano_ to comrevta

?"Indexando VALORECI.DBF"
use valoreci
index on letra_+str(nro_rec,12,0) to valoreci
index on est_chq to cheqreci
use



if file("OPERADOR.DBF")
 ?"Indexando OPERADOR.DBF"
 use operador
 index on nro_ope    to nroope
 index on raz_soc    to razsoc
 index on dir_       to dirope
endif


if file("ivaventa.dbf")
 ?"Indexando IVAVENTA.DBF"
 use ivaventa
 index on id_     to idvta
 index on nro_ope to opevta
 index on fec_com to fecvta
endif

if file("ivacompr.dbf")
 ?"Indexando IVACOMPR.DBF"
 use ivacompr
 index on id_     to idcom
 index on nro_ope to opecom
 index on fec_com to feccom
endif
